package entity.bean;

import entity.connector.TimeConvertor;
import java.util.Calendar;

/**
 *
 * @author 52571783
 */
public class Show {
    // Data Members
    private int movieID;
    private Calendar time;
    private int houseID;
    private int price;
    
    public Show(int value){
        movieID = value;
        time = Calendar.getInstance();
    }
    
    public Show(){
        time = Calendar.getInstance();
    }
    
    // Setter Functions
    public void setMovieID(int value){
        movieID = value;
    }
    
    public void setTime(Calendar value){
        time = value;
    }
    
    public void setTime(int y, int m, int d, int h, int n){
        time.set(y,m,d,h,n);
    }
    
    public void setHouseID(int value){
        houseID = value;
    }
    
    public void setPrice(int value){
        price = value;
    }
    
    // Getter Functions
    public int getMovieID(){
        return movieID;
    }

    public Calendar getTime(){
        return time;
    }
    
    public String getTimeString(){
        return TimeConvertor.printTime(time);
    }
    
    public int getHouseID(){
        return houseID;
    }
    
    public int getPrice(){
        return price;
    }
}